import Rrequest from '@/util/Rrequest'

// 添加油卡
export async function addoilcard(data) {
	return Rrequest({
		url: '/boot/oil/card/insert',
		method: 'post',
		data: data
	})
}
// 查询折扣
export async function zhekou(params) {
	return Rrequest({
		url: '/boot/oil/card/order/discount',
		method: 'get',
		params:params
	})
}
// 油卡列表
export async function cardlist(data) {
	return Rrequest({
		url: '/boot/oil/card/select/list',
		method: 'post',
		data:data
	})
}
// 余额充值
export async function yuecard(data) {
	return Rrequest({
		url: '/boot/oil/card/order/pay/balance',
		method: 'post',
		data:data
	})
}
// 支付宝充值
export async function baocard(data) {
	return Rrequest({
		url: '/boot/oil/card/order/pay/ali',
		method: 'post',
		data:data
	})
}
// 微信充值
export async function weicard(data) {
	return Rrequest({
		url: '/boot/oil/card/order/pay/weixin',
		method: 'post',
		data:data
	})
}
// 删除油卡
export async function delcard(id) {
	return Rrequest({
		url: '/boot/oil/card/delete/'+id,
		method: 'DELETE',
	})
}
// 编辑油卡
export async function editcard(data) {
	return Rrequest({
		url: '/boot/oil/card',
		method: 'put',
		data:data
	})
}

// 油卡详情
export async function cardmsg(id) {
	return Rrequest({
		url: '/boot/oil/card/get/'+id,
		method: 'get',
	})
}